package com.zimmor.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author:zimmor
 * @Date: 2021/3/25 22:26
 * @Description 调用base微服务的客户端
 * @version: 1.0.0
 */
@FeignClient(value = "base", fallback = BaseHystrix.class)
public interface LabelClient {
    @RequestMapping(method = RequestMethod.GET, value = "/base/label/{id}")
    public String getName(@PathVariable(value = "id") String id);
}
